package edu.zut.cs.software.module.warehouse.service.impl;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.module.warehouse.dao.WarehouseDao;
import edu.zut.cs.software.module.warehouse.domain.Warehouse;
import edu.zut.cs.software.module.warehouse.service.WarehouseManager;

import edu.zut.cs.software.teach.Base.service.impl.GenericManagerImpl;


/**
 * 
 * @author 1104606112
 *
 */
@Service("warehouseManager")
public class WarehouseManagerImpl extends GenericManagerImpl<Long, Warehouse> implements WarehouseManager
{ 
	WarehouseDao warehousedao;
	
	
	@Autowired
	public void setWarehousedao (WarehouseDao warehousedao) {
		this.warehousedao=warehousedao;
		this.dao=warehousedao;
	}
	
	@Override
	public Warehouse findById(Long id) {
		return null;
	}
	
	@Override
	public String WarehouseInformation(Warehouse warehouse) {
		// TODO Auto-generated method stub
		String Info;
		Info="货物名称："+warehouse.getName()+" "+"货物数量："+warehouse.getNumber()+"个";
		return Info;
		
	}
	@Override
	public Warehouse echo(Warehouse warehouse) {
		// TODO Auto-generated method stub
		return null;
		
	}
	@Override
	public void Delete(Warehouse warehouse) {
		// TODO Auto-generated method stub
	}
	@Override
	public void Add(Warehouse warehouse) {
		// TODO Auto-generated method stub
	}
	@Override
	public void Modify(Warehouse warehouse) {
		// TODO Auto-generated method stub
	}
}
